// pages/user/user.js
var app = getApp()
var httpService = app.data.service;
Page({
  data: {
    userInfo: {},
    loadingHidden: false,
  },
  onLoad: function () {
    var that = this
    wx.getUserInfo({
     success: function (res) {
       var userInfo = res.userInfo;
       that.setData({
         userInfo: userInfo
       })
     }
   })
  },
  onShow:function(){
    var that = this
    wx.getUserInfo({
      success: function (res) {
        var userInfo = res.userInfo;
        that.setData({
          userInfo: userInfo
        })
      }
    })
  },
  getOrder:function(){
    wx.navigateTo({
      url: 'order',
    })
  },
  phoneCall:function(){
    wx.makePhoneCall({
      phoneNumber: '4001060128',
    })
  },


  message:function(){
    wx.navigateTo({
      url: 'message',
    })
  },
  quan:function(){
    wx.navigateTo({
      url: 'account/quan',
    })
  },
  share:function(){
    wx.navigateTo({
      url: 'share/share',
    })
  }
 

})